Page({
  data:{
    list:[],
    total:0
  },
  onLoad() {
    this.getRepaireList()
  },
  async getRepaireList() {
    const res = await wx.http.get(`/repair?current=1&pageSize=10`)
    this.setData({
      list:res.data?.rows,
      total:res.data?.total
    })
    console.log(res);
  },
  goDetail(e) {
    wx.navigateTo({
      url: `/repair_pkg/pages/detail/index?id=${e.mark.id}`,
    })
  },
  addRepair() {
    wx.navigateTo({
      url: '/repair_pkg/pages/form/index',
    })
  },
})
